<script>
    $(document).ready(function()
    {
        $('#sort').on('change', function() {
            var url = "http://localhost/ci/admin/brand/"+ $(this).val();
            window.location.replace(url);
        });
    });
</script>
<p class="bold">List Brand</p>
<div class="sort">
    <select id="sort">
        <option value="">Sắp xếp</option>
        <option value="SortName">Tên</option>
        <option value="SortTime" disabled>Thời Gian</option>
        <option value="SortPriceH" disabled>Giá tăng</option>
        <option value="SortPriceL" disabled>Giá giảm</option>
    </select>
</div>
<table class="imagetable" style="width: 900px;">
    <tr>
        <th>STT</th>
        <th>Brand</th>
        <th>Logo</th>
        <th>Function</th>
    </tr>
    <?php
    $i=0;

    foreach ($listBrand as $value)
    {
        $i++;
        ?>

        <tr>
            <td><?php echo $i;?></td>
            <td><?php echo $value['brand_name'];?></td>
            <td><a class="img"><img width="50px" src="<?php echo base_url()."images/".$value['brand_logo'];?>"/></a></td>
            <td> <a style="margin: 0px 10px 0px 20px; font-size: 16px; text-decoration: none;" class="hdel" name="<?php echo $value['brand_id']; ?>" href="">Xóa</a>
            <input type="checkbox" class="hcheck<?php echo $value['brand_id']; ?>" name="checked" >
            </td>
        </tr>

    <?php
    }
    ?>

</table>
<div class="pagination"><?php echo $this->pagination->create_links(); ?></div>
</body>
</html>